package com.jby.autotest.service.other.impl;

import com.jby.autotest.dao.ProductMapper;
import com.jby.autotest.dao.WholeProcessMapper;
import com.jby.autotest.model.Product;
import com.jby.autotest.model.WholeProcess;
import com.jby.autotest.service.other.WholeProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WholeProcessServiceImp implements WholeProcessService {

    @Autowired
    private WholeProcessMapper wholeProcessMapper;

    @Autowired
    private ProductMapper productMapper;

    @Override
    public void insertSelective(WholeProcess wholeProcess) throws Exception{
        wholeProcessMapper.insertSelective(wholeProcess);
    }

    @Override
    public List<Product> selectAll(Product product) throws Exception {
        System.out.println("service,执行了.....");
        List<Product> productList = productMapper.selectAll(product);
        for(int i = 0; i < productList.size(); i++){

        }

        return productList;
    }
}
